package com.demo.services;

import com.demo.dtos.SysRole;
import com.demo.mappers.SysRoleMapper;
import com.demo.base.BaseServiceSupport;
import com.demo.base.IMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 * SysRoleService 业务处理类
 * @author BoomGred
 **/
@Service
public class SysRoleService extends BaseServiceSupport<SysRole> {
    @Autowired
    private SysRoleMapper<SysRole> sysRoleMapper;

    @Override
    public IMapper<SysRole> getMapper() {
        return sysRoleMapper;
    }

    @Override
    public String getPK() {
        return "uuid";
    }

    //@时间：2017/7/11 22:51
    //@描述：根据参数获取角色
    public SysRole findRoleByLog(Map<String, Object> srhParams){
        return sysRoleMapper.findRoleByLog(srhParams);
    }
}